package com.xm.singleton;

/**
 * 静态内部类（Static Inner Class）
 */
public class EStatic {
    private EStatic() {
        throw new AssertionError("禁止实例化此类！");
    }
    private static class SingletonHolder {
        private static final EStatic instance = new EStatic();
    }

    public static EStatic getInstance() {
        return SingletonHolder.instance;
    }
}
